double _rand(double startValue, double offset) {
	return startValue + (double)(offset * (rand() / (RAND_MAX + 1.0)));
}